import request from '@/utils/request'

// 查询薪酬调整列表
export function listAdjustment(query) {
  return request({
    url: '/salary/adjustment/list',
    method: 'get',
    params: query
  })
}

// 查询薪酬调整详细
export function getAdjustment(id) {
  return request({
    url: '/salary/adjustment/' + id,
    method: 'get'
  })
}

// 新增薪酬调整
export function addAdjustment(data) {
  return request({
    url: '/salary/adjustment',
    method: 'post',
    data: data
  })
}

// 修改薪酬调整
export function updateAdjustment(data) {
  return request({
    url: '/salary/adjustment',
    method: 'put',
    data: data
  })
}

// 删除薪酬调整
export function delAdjustment(id) {
  return request({
    url: '/salary/adjustment/' + id,
    method: 'delete'
  })
}
